package demo.bean;

import demo.bean.handler.FieldInjectHandler;
import demo.bean.handler.MethodInjectHandler;

public class InjectMethod {

    public static void execute(Object o, Class<?> clazz, BeanFactory factory) throws InstantiationException, IllegalAccessException {
        InjectHandler filed=new FieldInjectHandler();
        InjectHandler method=new MethodInjectHandler();
        filed.execute(o,clazz,factory);
        method.execute(o,clazz,factory);
    }
}
